//
//  QuotaCollectionViewCell.swift
//  YUANSHI
//
//  Created by pro on 2020/1/9.
//  Copyright © 2020 wangbin. All rights reserved.
//

import UIKit

class QuotaCollectionViewCell: UICollectionViewCell {
    
    private var titLabel : UILabel = {

        let lable = UILabel.init()
        lable.textColor = UIColor.blue
        lable.text = "3121"
        return lable
    }()
//    private var titleLabel: UILabel = {
//           let label = UILabel()
//           label.font = UIFont.systemFont(ofSize: 17)
//           return label
//       }()

    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupLayout()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupLayout() {
        self.backgroundColor = UIColor.red
        self.addSubview(self.titLabel)
        self.titLabel.snp.makeConstraints { (make) in
            
            make.center.equalToSuperview()
            
        }
    }
    
    var conStr : String?{
        didSet {
            guard let str = conStr else {return}
            self.titLabel.text = str
        }
    }
    
    
}
